Welcome![Sign In][Sign Up]
Location:
Search - Multiple Axis

Search list

[Other resourcetimes

Description: 功能概述: 提供一个时间序列的分析插件,只需要提供时间轴和数值轴,就可以进行相关的可视化分析计算。 接口要求: 利用TeeChart为主要平台构建,支持WebService,支持ActiveX,支持OLE Automation。 所有数值序列采用数组存储,独立于数据库,支持数据的转入转出,支持文本和XML等格式导入导出 图像支持矢量输出,支持多种文件格式输出,支持Stream方式输出图像。 序列数据源(含中间序列)支持交互修改. 基于年序列的频率分析见单独的频率分析插件Hfre(R),与空间相关的分析参考Viso和Space插件。 -functions outlined : to provide a time-series analysis of plug-ins, need only provide time frame and numerical axis, it can be related to the visual analysis. Interface : use TeeChart main platform for building support WebService support ActiveX, OLE Automation support. All numerical sequence using array storage, independent of the database, support data transfer to support XML and text formats derived images into vector output support, support for multiple output file formats, support Stream mode output images. Sequence data sources (including intermediate sequence) support interactive changes. Based on the frequency, sequence analysis, see separate plug-frequency analysis Hfre (R), and space-related analysis and reference Viso Space plug-in.
Platform: | Size: 743054 | Author: 刘雄 | Hits:

[OtherINTRODUCTION TO MATLAB FOR

Description: 1 Tutorial lessons 1 1 1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 Basic features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.3 A minimum MATLAB session . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.3.1 Starting MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.3.2 Using MATLAB as a calculator . . . . . . . . . . . . . . . . . . . . . 4 1.3.3 Quitting MATLAB . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.4 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.4.1 Creating MATLAB variables . . . . . . . . . . . . . . . . . . . . . . . 5 1.4.2 Overwriting variable . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.4.3 Error messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.4.4 Making corrections . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.4.5 Controlling the hierarchy of operations or precedence . . . . . . . . . 6 1.4.6 Controlling the appearance of °oating point number . . . . . . . . . . 8 1.4.7 Managing the workspace . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.4.8 Keeping track of your work session . . . . . . . . . . . . . . . . . . . 9 1.4.9 Entering multiple statements per line . . . . . . . . . . . . . . . . . . 9 1.4.10 Miscellaneous commands . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.4.11 Getting help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 1.5 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2 Tutorial lessons 2 12 2.1 Mathematical functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.1.1 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.2 Basic plotting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.2.1 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.2.2 Creating simple plots . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.2.3 Adding titles, axis labels, and annotations . . . . . . . . . . . . . . . 15 2.2.4 Multiple data sets in one plot . . . . . . . . . . . . . . . . . . . . . . 16 2.2.5 Specifying line styles and colors . . . . . . . . . . . . . . . . . . . . . 17 2.3 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.4 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.5 Matrix generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.5.1 Entering a vector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.5.2 Entering a matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 2.5.3 Matrix indexing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.5.4 Colon operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.5.5 Linear spacing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.5.6 Colon operator in a matrix . . . . . . . . . . . . . . . . . . . . . . . . 22 2.5.7 Creating a sub-matrix . . . . . . . . . . . . . . . . . . . . . . . . . . 23 2.5.8 Deleting row or column . . . . . . . . . . . . . . . . . . . . . . . . . . 25 2.5.9 Dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 2.5.10 Continuation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 2.5.11 Transposing a matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 2.5.12 Concatenating matrices . . . . . . . . . . . . . . . . . . . . . . . . . . 26 2.5.13 Matrix generators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 2.5.14 Special matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 2.6 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3 Array operations and Linear equations 30 3.1 Array operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.1.1 Matrix arithmetic operations . . . . . . . . . . . . . . . . . . . . . . . 30 3.1.2 Array arithmetic operations . . . . . . . . . . . . . . . . . . . . . . . 30 3.2 Solving linear equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 3.2.1 Matrix inverse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 3.2.2 Matrix functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 3.3 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 4 Introduction to programming in MATLAB 35 4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 4.2 M-File Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 4.2.1 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 4.2.2 Script side-eRects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 4.3 M-File functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 4.3.1 Anatomy of a M-File function . . . . . . . . . . . . . . . . . . . . . . 38 4.3.2 Input and output arguments . . . . . . . . . . . . . . . . . . . . . . . 40 4.4 Input to a script ¯le . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 4.5 Output commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 4.6 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 5 Control °ow and operators 43 5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 5.2 Control °ow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 5.2.1 The ``if...end'' structure . . . . . . . . . . . . . . . . . . . . . . . 43 5.2.2 Relational and logical operators . . . . . . . . . . . . . . . . . . . . . 45 5.2.3 The ``for...end'' loop . . . . . . . . . . . . . . . . . . . . . . . . . 45 5.2.4 The ``while...end'' loop . . . . . . . . . . . . . . . . . . . . . . . 46 5.2.5 Other °ow structures . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 5.2.6 Operator precedence . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 5.3 Saving output to a ¯le . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 5.4 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 6 Debugging M-¯les 49 6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 6.2 Debugging process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 6.2.1 Preparing for debugging . . . . . . . . . . . . . . . . . . . . . . . . . 50 6.2.2 Setting breakpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 6.2.3 Running with breakpoints . . . . . . . . . . . . . . . . . . . . . . . . 50 6.2.4 Examining values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 6.2.5 Correcting and ending debugging . . . . . . . . . . . . . . . . . . . . 51 6.2.6 Ending debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 6.2.7 Correcting an M-¯le . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Platform: | Size: 258288 | Author: taffy320 | Hits:

[Graph Drawingtimes

Description: 功能概述: 提供一个时间序列的分析插件,只需要提供时间轴和数值轴,就可以进行相关的可视化分析计算。 接口要求: 利用TeeChart为主要平台构建,支持WebService,支持ActiveX,支持OLE Automation。 所有数值序列采用数组存储,独立于数据库,支持数据的转入转出,支持文本和XML等格式导入导出 图像支持矢量输出,支持多种文件格式输出,支持Stream方式输出图像。 序列数据源(含中间序列)支持交互修改. 基于年序列的频率分析见单独的频率分析插件Hfre(R),与空间相关的分析参考Viso和Space插件。 -functions outlined : to provide a time-series analysis of plug-ins, need only provide time frame and numerical axis, it can be related to the visual analysis. Interface : use TeeChart main platform for building support WebService support ActiveX, OLE Automation support. All numerical sequence using array storage, independent of the database, support data transfer to support XML and text formats derived images into vector output support, support for multiple output file formats, support Stream mode output images. Sequence data sources (including intermediate sequence) support interactive changes. Based on the frequency, sequence analysis, see separate plug-frequency analysis Hfre (R), and space-related analysis and reference Viso Space plug-in.
Platform: | Size: 742400 | Author: 刘雄 | Hits:

[GDI-BitmapPicture_Com_Div

Description: 利用Bitmap實現將一張圖片分解為多張指定大小的圖片,以及將多張圖片合併成為一張,而合併圖檔包括橫軸與縱軸兩個方向。並且,使用者介面係以對話盒(Dialog Box)的形式表示。-Achieve an image using Bitmap decomposed into more than one designated size of the pictures, as well as multiple pictures merged into one, while the combined image file, including the horizontal axis and vertical axis in both directions. Also, the user interface system dialogue box (Dialog Box) in the form of that.
Platform: | Size: 7176192 | Author: 陳霖 | Hits:

[Otherrobot

Description: 机器人的初始坐标为(x,y),(x轴为东西,y为南北)小明的控制的命令如下n,s,w,e分别表示向北,向南,向西,向东走一步,一个步长为一个单位长度。 Input 多组测试数据。每次数据一行,格式为 x y control。x,y为整数(绝对值不超过1000000)表示机器人的初始坐标,control为一个不包含空格的由四个方向字母所组成的控制字串,长度不超过1000 Output 第i组数据输出前,请先输出“Case I:”. 机器人在执行完命令后的坐标位置。 Sample Input 4 2 nnnwwwnnneees 3 5 ssseeessswww Sample Output Case 1: 4 7 Case 2: 3 -1 -Robot' s initial coordinates (x, y), (x-axis east-west, y for the North and South) of Hsiao Ming' s control commands are as follows n, s, w, e, respectively north, south, west, east, away step, a step as a unit length. Input multiple sets of test data. Each data line, the format xy control. x, y as integer (absolute value is not more than 1 million) that the initial coordinates of the robot, control does not contain a space for the four directions by the control string consisting of letters, the length does not exceed 1000 Output the first group of data output i , be sure to output " Case I:" . robot finished in the implementation of the order of the coordinates. Sample Input 4 2 nnnwwwnnneees 3 5 ssseeessswww Sample Output Case 1: 4 7 Case 2: 3-1
Platform: | Size: 1024 | Author: 杨毅刚 | Hits:

[3D Graphic3dActive_src

Description: 一个3d可视化控件 ,不需要在进行编译 遵循Cpol-The control can perform the following functions: Axis customization, including customizable font, colors, and titles. Plot a large number of points and updating one or more plots on the graph with new data, replacing the old plot with the new plot. Plot the multiple elements with individual properties such as line and point color, line width, and point size. Lighting Plot styles: {0 (Lines) 1 (Points) 2 (LinePoint) 3 (Surface)} By setting the Projection property you should be able to change the viewing to: (0) Perspective (in which objects that are closer appear larger), and (1) Orthographic (in which the sizes and angles between objects are maintained no matter what their distance from the viewer). By setting the TrackMode property you should be able to do: (1) Zooming, (2) Rotation, and (3) Panning at runtime.
Platform: | Size: 120832 | Author: neekazhang | Hits:

[matlabshili

Description: matlab gui, 包括了4个很好的例子: 1.具有多个坐标轴的GUI,主要学习控制哪一个坐标轴是绘图命令的对象和用编辑文本框读入输入的数。 2.列表框目录阅读器,主要学习获取路径,加载,打开文件 3.从列表框中存取工作区变量,学习把存在于基本工作区的变量名放进列表框,选择多项等 4.地址簿阅读器,这个比较综合,用得技术也比较多。包括打开,保存,修改mat文件,利用handles结构保存和重新调用共享数据。-matlab gui, including four very good example: 1. with multiple axes of GUI, the main learning control which axis is the object of drawing commands and edit the text boxes with the number of read input. 2. The list box directory reader, the main study to obtain the path, load, open the file 3. From the variable list box to access the work area, learning the basic work area exists in the variable names into the list box, select a number of other 4 . address book readers, the more integrated, more technology used. Including open, save, modify mat file, save and re-use handles structure called shared data.
Platform: | Size: 25600 | Author: lewis | Hits:

[matlabHMD_x_MultLayer

Description: The function implements an horizontal magnetic dipole (along the x-axis) and calculates the x and z component of the magnetic field for y=0. The script allows to set a wanted value of multiple layers, with their own relative electric permittivity, relative magnetic permeability, conductivity (see the LAYERS PARAMETERS section in the script). The script finally produces an animation of the radiated field.
Platform: | Size: 1686528 | Author: Alex | Hits:

[Delphi VCLNiceChart

Description: Once I need a chart component that can shows interpolated lines for one of my project. I don t need a sophisticated full-featured chart, I just need a simple one with basic functionalities. Don t find a way to do it with standard Delphi TChart component, I decided to write my own. Currently it has three graph styles: lines, smooth lines with B-Splines, and bars. It has multilined title, legend, automatic y-axis, and supports multiple series. It also can produce a monochrome version of the graph using monochromatic brushes. Those features are sufficient for my programming needs. I learned a lot from creating this component. I learned the algorithm to pick axis value range that are aligned to zero from an arbitrary set of values. I also learned some linear interpolation algoritms, although currently only B-splines that is accomodated in this component. And finally I understand why there s only a handful chart component out there.
Platform: | Size: 266240 | Author: arash | Hits:

[Graph Drawingplotcurveprogram1

Description: 可以绘制多条曲线,双y轴,自动绘制多个sheet内容,实现绘图自动化-Number of curves can be drawn, double y-axis, automatic drawing multiple sheet content and achieve automated drawing
Platform: | Size: 1024 | Author: caixidong | Hits:

[matlabgraphicsapplications

Description: matlab图形应用篇,三角函数曲线,图形的叠加双y轴图形的绘制,单个轴窗口显示多个图形等32个程序-matlab graphics applications articles, trigonometric curves, the superposition of two-y-axis graph drawing, a single axis of the window display multiple graphics programs such as 32
Platform: | Size: 5120 | Author: shiyong | Hits:

[Linux-UnixQtMjpegVideoSurveillance.tar

Description: Draft version of our video surveillance application. Currently it can take only MJPEG stream from multiple sources and display it as matrix. Tried with 72 Axis web cameras on Arch Linux with 8Gb RAM and AMD Athlon II X2 265 CPU. It utilized our 100mbit network and 100 of all CPU cores. I think, not for production use :-) For all question contact with me: hatred@inbox.ru or adrozdoff@gmail.com-Draft version of our video surveillance application. Currently it can take only MJPEG stream from multiple sources and display it as matrix. Tried with 72 Axis web cameras on Arch Linux with 8Gb RAM and AMD Athlon II X2 265 CPU. It utilized our 100mbit network and 100 of all CPU cores. I think, not for production use :-) For all question contact with me: hatred@inbox.ru or adrozdoff@gmail.com
Platform: | Size: 12288 | Author: monah_tuk | Hits:

[FlashMXChartWithMultipleValueAxes

Description: flex图表实例,带有多轴坐标的曲线统计图,用来做报表用的-chart with multiple value axis for report
Platform: | Size: 702464 | Author: Sirius | Hits:

[DocumentsMotion-Controller-with-STM32

Description: 介绍了一种点位运动控制器的设计,该控制器可以控制步进和伺服电机。该运动控制器以 STM32F103 为主控微处理器,实现了电机起停的加减速控制,扩展了 RS485 串行通信接口,设计了限位保护电 路,移植了嵌入式实时操作系统μC /OS-Ⅱ,通过μC /OS-Ⅱ来调度运动控制器的多个任务,设计了串口通信协议, 可以方便组成多轴控制系统.-Describes the design of a point of the motion controller, the controller can control a stepper and servo motors. The motion controller controlling microprocessor STM32F103, acceleration and deceleration control the motor starts and stops, extended RS485 serial communication interface, designed to limit protection circuits, transplantation of embedded real-time operating system μC/OS-Ⅱ μC/OS-Ⅱ scheduling multiple tasks of the motion controller, designed a serial communication protocol, can easily form a multi-axis control system.
Platform: | Size: 275456 | Author: gaoyong | Hits:

[Graph DrawingChart

Description: 老外写的Chart控件,我在这基础上加了多Y轴.就是一个X轴多个Y轴.多个Y轴共用一个X轴需要的下了.-Chart controls, written by foreigners on this basis plus multi-Y axis is an X-axis, Y axis. Shared by multiple Y-axis of an X-axis next.
Platform: | Size: 5078016 | Author: wowo | Hits:

[CSharp01

Description: Description 给定一个r * c的只包含0和1两个数字的矩阵,对于矩阵中任意一点(x,y),定义(x,y)的权为(x,y)到与此点曼哈顿距离最小的1的曼哈顿距离(如果mat[x][y] = 1,则(x,y)的权为0)。请求出对于给定01矩阵中所有点的权值之和。 所谓曼哈顿距离——两点在南北方向上的距离加上在东西方向上的距离,即D(I,J)=|XI-XJ|+|YI-YJ|。对于一个具有正南正北、正东正西方向规则布局的城镇街道,从一点到达另一点的距离正是在南北方向上旅行的距离加上在东西方向上旅行的距离因此曼哈顿距离又称为出租车距离,曼哈顿距离不是距离不变量,当坐标轴变动时,点间的距离就会不同。 Input 输入包含多组数据,每组数据第一行为两个整数r, c(0 < r, c < = 1000)。 接下来 r 行每行有 c 个整数,且保证只能为0或者1(保证矩阵中含有至少一个1)。 Output 对于每组数据,输出一个整数,此矩阵中每个点的权之和。 Sample Input 2 2 0 1 0 0 2 2 0 0 1 1 3 4 0 0 1 0 0 1 1 0 0 0 0 1 Sample Output 4 2 10-Description Given a r* c contains only numbers 0 and 1 matrix , the matrix for any point (x, y), the definition (x, y) has a weight of (x, y) to the minimum Manhattan distance to this point a Manhattan distance (if mat [x] [y] = 1, then (x, y) has a weight of 0 .) The right to request all the points for a given value of 01 and the matrix . The so-called Manhattan distance- the distance between two points in the north-south direction with a distance in the east-west direction , i.e., D (I, J) = | XI-XJ |+ | YI-YJ |. For having a north south , east town street layout rules due west direction , from one point to another point is the distance to the north-south direction of travel distance plus the distance traveled east-west direction and therefore also known as Manhattan distance taxi distance, Manhattan distance is not a distance invariant , when changes in the axis , the distance between points will be different. Input Input contains multiple sets of data , each data of the
Platform: | Size: 1024 | Author: hd | Hits:

[CSharpDrawGraphics

Description: C#绘制直方图 饼图 曲线图,单数据直方图取最前两列,第一列为横轴每列名称,第二列为值。多数据直方图第一列为横轴父项名称,然后依次取前一列为横轴每列名称,后一列为值。曲线图取第一列为横轴每列名称,往后每列都代表一条曲线,列名为曲线名称。对Table[0]进行操作,取最前两列,第一列为名字,第二列为值-C# draw a histogram pie graphs, histograms single data before taking the two, the first name of each column as the horizontal axis, and the second as a value. Multiple data as a histogram of the first horizontal parent name, and then take a turn in front of each column name as the horizontal axis, the latter as a value. Take the first graph as the horizontal axis of each column name, each column represents a backward curve, the column named curve name. On Table [0] operation, before taking the two, the first column name, the second column is the value
Platform: | Size: 18432 | Author: ypudn59 | Hits:

[Other systemsCDMA

Description: code division multiple axis
Platform: | Size: 10240 | Author: siddhuu | Hits:

[Delphi/CppBuilderTeeChart-For-D7-XE5

Description: TeeChart Pro是一个强大的VCL图表组件,支持上百种2D和3D图表风格,并提供40多个数学和统计函数、无限制的轴和22个调色板TeeChart还集成打印预览,图表可导出到JPEG,EPS,PDF,PNG,PCX,GIF,Bitmap和metafile文件。同时还可提供.NET,ActiveX和COM版本。TeeChart还包括一个强大的、完整的编辑对话框,几乎可用于每个组件和子组件,允许你快速的设计复杂图表应用程序。图表编辑器通过TeeCommander组件进一步得到增强,它提供一次点击访问图表编辑器和共同特征。这些编辑器在设计时和运行时均可提供。TeeChart Pro为缩减可执行程序大小被分成完全面向对象的多个模块。它还允许开发者创建自定义包组成他们自己需要的模块。支持Delphi和C++ Builder的(D7-XE5)。-TeeChart Pro VCL is a powerful charting component that supports 100 types of 2D and 3D graphics style, and offers more than 40 mathematical and statistical functions, unlimited axis and 22 palette. TeeChart integrated Print Preview, charts can be exported to JPEG, EPS, PDF, PNG, PCX, GIF, Bitmap and metafile file. While also providing .NET, ActiveX and COM versions. TeeChart also includes a powerful, integrated editing dialog for virtually every component and sub-component that allows you to quickly design complex diagramming applications. Chart editor is further enhanced by TeeCommander assembly, which provides one-click access to the diagram editor and co-feature. The editors at design time and run time are available. TeeChart Pro to reduce the size of the executable program is divided into multiple modules fully object-oriented. It also allows developers to create custom packages consisting of modules of their own needs. Support for Delphi and C++ Builder s (D7-XE5).
Platform: | Size: 15947776 | Author: 张艳 | Hits:

[Data structsc

Description: 问题描述 有多个可供选择的村庄坐落在笔直的高速公路旁。高速公路被表示为一个整数轴,每个 村庄有一个整数坐标表示其位置。两个村庄不会在同一个位置。在两个位置之间的距离是其 整数坐标的差的绝对值。 现在要选择一些村庄,在这些村庄里建小学。小学位置的选择应该使每个村庄和离该村 庄最近的小学之间的距离的总和最小。注意小学只能建立在某个村庄,小学的位置视为该村 庄的位置。 实验任务 请你写一个程序,给出的村庄的位置和要建立的小学的数量,计算每个村庄和它最近的 小学之间的距离尽可能少的总和。-Problem Description There are multiple options villages situated beside the straight highway. Highway axis is represented as an integer, each The village has a integer coordinates represent its position. Two villages will not be in the same position. The distance between the two positions is its The absolute value of the difference between integer coordinates. Now we want to a number of villages, built primary schools in these villages. Select the primary location should make every village and village The sum of the minimum distance of the nearest village primary school between. Note that can only be built in a village primary school, primary school location deemed village Location village. Experimental task You write a program, given the number of positions to be established villages and primary schools, calculated for each village and its nearest The distance between the primary minimal sum.
Platform: | Size: 31744 | Author: zzz | Hits:
« 12 »

CodeBus www.codebus.net